]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ui/animation: Fix a de-ClutterColor fallout
authorBilal Elmoussaoui <belmouss@redhat.com>
Fri, 14 Jun 2024 17:06:39 +0000 (19:06 +0200)
committerBilal Elmoussaoui <belmouss@redhat.com>
Fri, 14 Jun 2024 17:07:30 +0000 (19:07 +0200)
Fixes: 7f0b1e98c ("cleanup: Adapt to removed ClutterColor")
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7722

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3371>

js/ui/animation.js

index 5ceba69105fa944c6547b871243067c2f8df25f9..b9cb9802cf3c589ed34f7f62cdd7afb1cd100c95 100644 (file)
@@ -147,7 +147,7 @@ class Spinner extends AnimatedIcon {
         this.connect('style-changed', () => {
             const themeNode = this.get_theme_node();
             const textColor = themeNode.get_foreground_color();
-            const [, luminance] = textColor.to_hls();
+            const [, , luminance] = textColor.to_hsl();
             const file = luminance > 0.5
                 ? this._fileDark
                 : this._fileLight;